package com.po;

/**
 * AbstractBaseMetadataIndexId entity provides the base persistence definition
 * of the BaseMetadataIndexId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBaseMetadataIndexId implements
		java.io.Serializable {

	// Fields

	private String mapId;
	private String id;

	// Constructors

	/** default constructor */
	public AbstractBaseMetadataIndexId() {
	}

	/** full constructor */
	public AbstractBaseMetadataIndexId(String mapId, String id) {
		this.mapId = mapId;
		this.id = id;
	}

	// Property accessors

	public String getMapId() {
		return this.mapId;
	}

	public void setMapId(String mapId) {
		this.mapId = mapId;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractBaseMetadataIndexId))
			return false;
		AbstractBaseMetadataIndexId castOther = (AbstractBaseMetadataIndexId) other;

		return ((this.getMapId() == castOther.getMapId()) || (this.getMapId() != null
				&& castOther.getMapId() != null && this.getMapId().equals(
				castOther.getMapId())))
				&& ((this.getId() == castOther.getId()) || (this.getId() != null
						&& castOther.getId() != null && this.getId().equals(
						castOther.getId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMapId() == null ? 0 : this.getMapId().hashCode());
		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		return result;
	}

}